package com.wskh.eduOrder.client;

import com.wskh.eduOrder.client.impl.EduClientImpl;
import com.wskh.eduOrder.entity.CourseWebVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@FeignClient(value = "service-edu",fallback = EduClientImpl.class)
public interface EduClient {

    @GetMapping("/eduService/courseFront/getCourseInfoDto/{courseId}")
    public CourseWebVo getCourseInfoDto(@PathVariable String courseId);

}
